from fusionmatrix.windows.main import MainWindow
from fusionmatrix.assets import get_icon_by_name, get_pixmap_by_name
from PySide6.QtWidgets import QApplication
from PySide6.QtCore import Qt
from multiprocessing import freeze_support

import sys


def main():
    freeze_support()
    app = QApplication(sys.argv)
    app.setWindowIcon(get_icon_by_name("fusionmatrix.png"))
    app.setApplicationName("FusionMatrix")
    app.setStyle("Fusion")
    window = MainWindow()
    window.show()
    sys.exit(app.exec())


if __name__ == "__main__":
    main()
